import { AITalk } from '@/types/ai'
import { Book } from '@/types/book'
import { Pagination, PageResult, PageParam } from '@/types/global'
import { http } from '@/utils/http'

type MyParams = Pagination & { subType?: string } // 定义类型 类型是Pagination的属性 + subType属性

export const aiTalk = (message?: string) => {
  return http.post<string>('/ai/talk', { message })
}

export const talkSessionHisList = () => {
  return http.get<AITalk[]>('/ai/talkSessionHisList')
}
